package net.chenlin.dp.modules.business.dao;

import net.chenlin.dp.common.entity.Page;
import net.chenlin.dp.common.entity.Query;
import net.chenlin.dp.modules.business.entity.po.DeviceRegisterPo;
import net.chenlin.dp.modules.business.entity.po.ExceFilePo;
import net.chenlin.dp.modules.business.entity.po.ExcelmportDataPo;
import net.chenlin.dp.modules.business.entity.vo.deviceRegister.DeviceRegisterStatusVo;
import net.chenlin.dp.modules.business.entity.vo.deviceRegister.deviceRegisterListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Yangsm
 * @ClassName: DeviceRegisterMapper
 * @Description: TODO
 * @date 2023年01月31日 20:30
 */
@Mapper
public interface DeviceRegisterMapper {

    int getNumByDeviceNo(String deviceNo);

    int judgeIsOnline(String deviceNo);

    List<DeviceRegisterStatusVo> getAllDeviceStatusInfo();

    void updateDeviceLineStatus(String deviceNo);

    void recoveryDeviceLineStatus(String deviceNo);

    List<deviceRegisterListVo> getDeviceList(@Param("page") Page<deviceRegisterListVo> page, @Param("query") Query query);

    //void batchInsertByExcel(List<DeviceRegisterPo> list);

    void batchInsertByExcel(List<ExcelmportDataPo> list);

    void insertExcelImportInfo(ExceFilePo filePo);

    void updateDeviceStatus(String deviceNo);
}
